#include "main.h"
#include "ParseNIT.h"

extern int ParseTS(FILE *pTsfile);
extern void GetInfo();

int main(int argc,char *argv[])
{
    FILE *pTsFile = NULL;
    TS_NIT *Nit_Info_Point;


    pTsFile = fopen(argv[1],"rb");                  

    if(pTsFile == NULL)
    {
        printf("File read failed!\n");

        return -1;
    }else{
        printf("File read success!\n");
    }

    ParseTS(pTsFile);               //解析TS流

    GetInfo();              //获取TS流信息

    fclose(pTsFile);

    return 0;
}